//
//  RETProductSkuCellViewModel.m
//  Retail
//
//  Created by ChenJie on 4/1/20.
//  Copyright © 2020 Mist. All rights reserved.
//

#import "RETProductSkuCellViewModel.h"
#import "OASDK.h"

@interface RETProductSkuCellViewModel ()

@end

@implementation RETProductSkuCellViewModel

#pragma mark - Lifecycle methods

- (instancetype)init {
    self = [super init];
    if (self) {
    }
    return self;
}

#pragma mark - Public methods

- (NSInteger)itemIndexWithViewModel:(RETSkuItemViewModel *)itemViewModel {
    return [self.items indexOfObject:itemViewModel];
}

#pragma mark - Private methods



#pragma mark - Delegate methods



#pragma mark - Setter

//- (void)setSelectedItemIndex:(NSInteger)selectedItemIndex {
//    RETSkuItemViewModel *oldSelectedSkuItemViewModel = self.items[_selectedItemIndex];
//    oldSelectedSkuItemViewModel.selected = NO;
//    
//    _selectedItemIndex = selectedItemIndex;
//    
//    //
//    RETSkuItemViewModel *currentSelectedSkuItemViewModel = self.items[selectedItemIndex];
//    currentSelectedSkuItemViewModel.selected = YES;
//}

#pragma mark - Getter

OAGetMutableArray(items)

#pragma mark - Memory management methods

- (void)dealloc {
}

@end
